//
//  THGoodDetailModel.h
//  TreeHole
//
//  Created by apple on 2020/9/16.
//  Copyright © 2020 stoneobs. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "THCommentModel.h"
NS_ASSUME_NONNULL_BEGIN
@class THGoodDetailModelGourpItemModel;
@class THGoodDetailModelSpecModel;

@interface THGoodDetailModel : NSObject
@property(nonatomic, strong) NSString                     *g_id;/**<  默认规格名字*/
@property(nonatomic, strong) NSString                     *brief;/**<  简介*/
@property(nonatomic, strong) NSArray                     *tags;/**<  其他介绍*/

@property(nonatomic, strong) NSString                     *business_num;/**< 享受企业用户价格需要购买的数量 */
@property(nonatomic, strong) NSString                     *business_price;/**<  企业用户价格*/

@property(nonatomic, strong) NSArray                     *icons;/**< banner */
@property(nonatomic, strong) NSString                     *img;/**<  主图*/
@property(nonatomic, strong) NSArray                     *imgs;/**<  banner*/
@property(nonatomic, assign) BOOL                     is_collection;/**<  是否收藏*/
@property(nonatomic, assign) BOOL                     is_pt;/**<  是否拼团*/
@property(nonatomic, assign) BOOL                     is_sr;/**<  是否是生日大礼包*/
@property(nonatomic, assign) BOOL                     is_xql;/**<  是否周六商品*/

@property(nonatomic, assign) BOOL                     cus_pt_mine_buy;/**<  是否是单独购买*/

@property(nonatomic, strong) NSString                     *name;/**<  名字*/
@property(nonatomic, strong) NSString                     *old_price;/**<  原价*/
@property(nonatomic, strong) NSArray                     *parameter;/**<  产品参数图*/
@property(nonatomic, strong) NSString                     *price;/**<  名字*/

@property(nonatomic, strong) NSString                     *pt_num;/**<  拼团最小数量*/
@property(nonatomic, strong) NSString                     *pt_price;/**<  拼团价格*/
@property(nonatomic, strong) NSString                     *sale_num;/**<  已售出*/
@property(nonatomic, strong) NSString                     *shop_num;/**<  享受小店用户家所需数量*/


@property(nonatomic, strong) NSString                     *shop_price;/**<  享受小店价格*/
@property(nonatomic, strong) NSString                     *spu_id;/**<  商品编号*/
@property(nonatomic, strong) NSString                     *integral;/**< 积分 */
@property(nonatomic, strong) NSString                     *sr_price;/**<  生日大礼包价格*/
@property(nonatomic, strong) NSString                     *xql_price;/**<  周六大礼包价格*/
@property(nonatomic, strong) NSString                     *stock;/**<  库存*/
@property(nonatomic, strong) NSString                     *type_name;/**<  尺码*/
@property(nonatomic, strong) NSArray                     *type_detail;/**<  尺码选择*/

@property(nonatomic, strong) NSString                     *free_postage;/**<  满多少包邮*/

@property(nonatomic, strong) NSString                     *spec_name;/**<  默认规格名字*/
@property(nonatomic, strong) NSArray<THGoodDetailModelSpecModel*>                     *specs;/**< 拼团 */
@property(nonatomic, strong) NSArray<THCommentModel*>                     *cus_comment;/**< 评论 */
@property(nonatomic, strong) THGoodDetailModelSpecModel                     *cus_selected_spec;/**< 如果没有选择，那么就是第一个 */
@property(nonatomic, strong) NSString                     *cus_selected_spec_price;/**< 合适的价格，拼团返回拼团价格，诸如此类 */
@property(nonatomic, strong) NSString                     *cus_type_selcted;/**< 合适的价格，拼团返回拼团价格，诸如此类 */

@property(nonatomic, strong) NSArray<THGoodDetailModelGourpItemModel*>                     *groups;/**< 拼团 */
@property(nonatomic, strong) THGoodDetailModelGourpItemModel                     *cus_selected_group;/**< 如果没有选择，那么就是第一个 */

@property(nonatomic, assign) NSInteger                     cus_num;/**< 没有规格 的数量默认选中数量 */
@property(nonatomic, strong) NSString                     *cus_countPostage;//邮费

@end


@interface THGoodDetailModelGourpItemModel : NSObject
@property(nonatomic, strong) NSString                     *group_id;/**<  组id*/
@property(nonatomic, strong) NSString                     *num;/**<  当前多少人*/
@property(nonatomic, strong) NSString                     *sub;/**<  还差多少*/
@property(nonatomic, strong) NSString                     *total;/**<  总共需要多少人拼团成功*/
@property(nonatomic, strong) THUserModel                     *user;/**< 发起拼团的用户 */
@end

@interface THGoodDetailModelSpecModel : NSObject
@property(nonatomic, strong) NSString                     *s_id;/**< 规格id */
@property(nonatomic, strong) NSString                     *goods_id;/**<  */
@property(nonatomic, strong) NSString                     *name;/**<  */
@property(nonatomic, strong) NSString                     *price;/**<  普通价格*/
@property(nonatomic, strong) NSString                     *pt_price;/**<  拼团*/
@property(nonatomic, strong) NSString                     *business_price;/**<  企业价格*/
@property(nonatomic, strong) NSString                     *shop_price;/**<  小店价格*/
@property(nonatomic, strong) NSString                     *sr_price;/**<  生日价格*/
@property(nonatomic, strong) NSString                     *xql_price;/**<  周六价格*/
@property(nonatomic, strong) NSString                     *integral;/**<  规格对应的积分*/

@property(nonatomic, assign) NSInteger                     cus_num;/**< 默认选中数量 */
@end
NS_ASSUME_NONNULL_END
